<!DOCTYPE html>
<html>
<head>
    <title>Weiran Embeded Applications</title>
    <meta charset="utf-8" />
    <script src="../../jpp/jwim/jwim-0.8.min.js"></script>
    <script src="../../jpp/soundmanager/soundmanager2.min.js"></script>
    <script src="../../jpp/socket.io/io-0.9.6.min.js"></script>
    <script src="http://openlayers.org/api/2.12/OpenLayers.js"></script>
    <script src="../../jpp/openlayers/plugins/weolstk-0.4.min.js"></script>
    <script src="../../jpp/weiran/weiran-1.2.min.js"></script>
    <script src="../../jpp/weiran/plugins/weos-1.1.min.js"></script>
    <style>html, body, #weiran {margin: 0; width: 100%; height: 100%;} </style>
<script>
    function addApps(os) {
        // internal
        os.getMainPanel().addApp(new Weiran.App({
            title: {'en': 'Account', 'zh-CN': '用户'},
            icon: 'apps/account/icon.png', 
            page: 'apps/account/index.html',
            width: 540,
            height: 300
        }));
        os.getMainPanel().addApp(new Weiran.App({
            title: {'en': 'Device Manager', 'zh-CN': '设备管理'},
            icon: 'apps/device/icon.png', 
            page: 'apps/device/index.html',
            width: 540,
            height: 300
        }));
        os.getMainPanel().addApp(new Weiran.App({
            title: {'en': 'Notification Center', 'zh-CN': '通知中心'},
            icon: 'apps/notification/icon.png', 
            page: 'apps/notification/index.html',
            width: 540,
            height: 300
        }));
        os.getMainPanel().addApp(new Weiran.App({
            title: {'en': 'Layer Switcher', 'zh-CN': '图层切换'},
            icon:'apps/layerswitcher/icon.png',
            page:'apps/layerswitcher/index.html',
            width: 240,
            height: 400
        }));
        os.getMainPanel().addApp(new Weiran.App({
            title: {'en': 'iWhere', 'zh-CN': '我在哪里'},
            icon:'apps/iwhere/icon.png',
            page:'apps/iwhere/index.html',
            width: 200,
            height: 160
        }));
        os.getMainPanel().addApp(new Weiran.App({
            title: {'en': 'LonLat Picker', 'zh-CN': '点取坐标'},
            icon:'apps/llpicker/icon.png',
            page:'apps/llpicker/index.html',
            width: 260,
            height: 160
        }));
        os.getMainPanel().addApp(new Weiran.App({
            title: {'en': 'Measuring Tools', 'zh-CN': '测量工具'},
            icon:'apps/measure/icon.png',
            page:'apps/measure/index.html',
            width: 280,
            height: 140
        }));
        os.getMainPanel().addApp(new Weiran.App({
            title: {'en': 'Cell Tracker', 'zh-CN': '基站定位'},
            icon:'apps/celltracker/icon.png',
            page:'apps/celltracker/index.html',
            width: 200,
            height: 200
        }));
        os.getMainPanel().addApp(new Weiran.App({
            title: {'en': 'Feedback', 'zh-CN': '金口玉言'},
            icon:'apps/feedback/icon.png',
            page:'apps/feedback/index.html',
            width: 540,
            height: 300
        }));
        // external
        //os.getMainPanel().addApp(new Weiran.App('google'));
        os.getMainPanel().addApp(new Weiran.App('calculator'));
        os.getMainPanel().addApp(new Weiran.App('baidu'));
        os.getMainPanel().addApp(new Weiran.App('soso'));
        os.getMainPanel().addApp(new Weiran.App('mango'));
        os.getMainPanel().addApp(new Weiran.App('kuaidi100'));
        //os.getMainPanel().addApp(new Weiran.App('qq'));
        //os.getMainPanel().addApp(new Weiran.App('tudou'));
        //os.getMainPanel().addApp(new Weiran.App('douban'));
    }
</script>
</head>

<body>
<div id='weiran'></div>
<script>
    var os = new Weiran.OS('weiran', 'http://127.0.0.1:2080');
        os.themeHost = '../../fanghuanweiran/branches/theme/';
        os.boot();
        addApps(os);
</script>
</body>
</html>
